Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gergo/applicationIdAttach #391

Open
wants to merge 1 commit into
base: v3-dev
Choose a base branch
from
Open

Conversation

gjedlicska
Copy link
Collaborator

@gjedlicska gjedlicska commented Feb 28, 2025

Adds application ids to the result metadata

@gjedlicska gjedlicska requested a review from JR-Morgan February 28, 2025 18:04
@gjedlicska gjedlicska changed the base branch from main to v3-dev February 28, 2025 18:04
@@ -332,7 +332,7 @@ def _mark_run(
def attach_error_to_objects(
self,
category: str,
object_ids: Union[str, List[str]],
objects: Union[Base, List[Base]],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we are changing this anyway, I think requiring a List[Base] only is preferable to either a single or a list

raise ValueError(
f"Need atleast one object_id to report a(n) {level.value.upper()}"
)
id_list = object_ids
id_list = [o.id for o in objects]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

im not a fan of this - partly because we are storing a list of objects as result data contextual to the objects - ids worked well here as there wasn't an inference the developer could make that this could be NEW Base objects.

We don't serialize these objects in the same way as a Send, do we???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants